#region using directives
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
#endregion

namespace MapiApplication
{
    public partial class AddProfile : Form
    {
        #region Constructors
        public AddProfile()
        {
            InitializeComponent();
        }
        #endregion

        #region Helper Methods
        public string TbxBoxValue
        {
            get
            {
                return (this.tbxProfileNewProfileName.Text);
            }
        }
        #endregion

        #region Event Handlers
        private void AddProfile_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Escape)
            {
                this.Close();
            }
        }

        private void tbxProfileNewProfileName_TextChanged(object sender, EventArgs e)
        {
            if (tbxProfileNewProfileName.Text != string.Empty)
            {
                btnOkAddProfile.Enabled = true;
            }
            else
            {
                btnOkAddProfile.Enabled = false;
            }
        }
        #endregion
    }
}